﻿using UnityEngine;
using System.Collections;

public class RightWdwMgr : MonoBehaviour {
	public int CurWinNum = 0; //0이 없음 1 - Hire/ 2 - UNIT / 3 - BUILD / 4 - STAT
	public int CurApplicationNum = 0; //0이 없음 1부터 순서대로 
	public bool ChgApp = false;
	public bool bSwipeToTop = false;

    public int m_iBeforeWinNum;
    public bool m_bSelectUnitPage;

	void Awake(){
        m_iBeforeWinNum = CurWinNum;
		CurApplicationNum = 99;
		bSwipeToTop = false;
	}

    void Update()
    {
        if (m_iBeforeWinNum == 0 && m_iBeforeWinNum != CurWinNum)
            GameTime.TimeSpeed_Pause();
        else if(m_iBeforeWinNum != CurWinNum && CurWinNum == 0)
            GameTime.TimeSpeed_Play();

        m_iBeforeWinNum = CurWinNum;
    }
}
